package com.smart.platform.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//操作日志实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OperateLog {
    private Long id; //ID

    private String operateUser; //操作人ID

    private LocalDateTime operateTime; //操作时间

    private String className; //操作类名

    private String methodName; //操作方法名

    private String methodParams; //操作方法参数

    private String returnValue; //操作方法返回值

    private Long costTime; //操作耗时

    /*@TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    //创建时插入字段
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUser;*/
}
